/* ==========================================================
   PANEL BAJADA PRIORIDAD - POR ENCIMA DE LA TABLA
   ========================================================== */

#eci_cc_msg_panel.eci-cc-msg-panel{
  width: 100%;
  max-width: 100%;
  height: 350px;

  max-height: 260px;      /* altura controlada */
  overflow: hidden;

  background: #ffffff;
  border: 1px solid #d7dde5;
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(0,0,0,.12);

  display: flex;
  flex-direction: column;

  position: relative;
  z-index: 50;            /* ← CLAVE: por encima de la tabla */
}

/* Scroll interno */
#eci_cc_msg_panel .eci-cc-msg-list{
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 10px;
}

/* Items */
#eci_cc_msg_panel .eci-cc-msg-item{
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 8px;
  align-items: start;

  padding: 8px 10px;
  margin-bottom: 8px;

  background: #f8fafc;
  border: 1px solid #e4e9f0;
  border-radius: 12px;
}

/* Botón copiar */
#eci_cc_msg_panel .eci-cc-copy-btn{
  width: 26px;
  height: 26px;
  border-radius: 8px;
  border: 1px solid #d9e3f1;
  background: #eaf2ff;
  color: #1e5bb8;
  cursor: pointer;

  display: grid;
  place-items: center;
}

#eci_cc_msg_panel .eci-cc-copy-btn:hover{
  background: #dbe9ff;
}

/* Icono */
#eci_cc_msg_panel .eci-cc-copy-ico{
  width: 14px;
  height: 14px;
  fill: currentColor;
}

/* Texto */
#eci_cc_msg_panel .eci-cc-msg-text{
  margin: 0;
  font-size: 12px;
  line-height: 1.2rem;
  color: #111827;
  word-break: break-word;
}

/* Toast */
#eci_cc_msg_panel .eci-cc-toast{
  position: absolute;
  right: 10px;
  bottom: 10px;
  padding: 6px 8px;
  border-radius: 8px;
  background: #111827;
  color: #fff;
  font-size: 11px;
  opacity: 0;
  transform: translateY(5px);
  transition: opacity .2s ease, transform .2s ease;
}

#eci_cc_msg_panel .eci-cc-toast.show{
  opacity: 1;
  transform: translateY(0);
}


/* ==========================================================
   CORRECCIÓN PARA LA TABLA INFERIOR (TH NEGROS)
   ========================================================== */

/* Si la cabecera es sticky, bajamos su z-index */
table thead th{
  position: sticky;
  top: 0;
  z-index: 1;   /* ← menor que el panel */
}

/* Aseguramos que la tabla no tenga z-index alto */
table{
  position: relative;
  z-index: 1;
}
